package com.codebattery.domain.model;

import com.codebattery.domain.entity.Node;

import java.util.LinkedList;
import java.util.List;

public class NodeTreeEle {
    private String key;
    private int id;
    private String node;
    private String title;
    private Byte isMenu;
    private Byte isAuth;
    private Byte isLogin;

    private List<NodeTreeEle> children = new LinkedList<>();

    public NodeTreeEle(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public List<NodeTreeEle> getChildren() {
        return children;
    }

    public void setChildren(List<NodeTreeEle> children) {
        this.children = children;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Byte getIsMenu() {
        return isMenu;
    }

    public void setIsMenu(Byte isMenu) {
        this.isMenu = isMenu;
    }

    public Byte getIsAuth() {
        return isAuth;
    }

    public void setIsAuth(Byte isAuth) {
        this.isAuth = isAuth;
    }

    public Byte getIsLogin() {
        return isLogin;
    }

    public void setIsLogin(Byte isLogin) {
        this.isLogin = isLogin;
    }
}
